Skip to content

Commit b0eec49

Browse files
chore(internal): codegen related update
1 parent e681df9 commit b0eec49

30 files changed

+143
-143
lines changed

tests/api-resources/agent.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const client = new Morphik({
88
});
99

1010
describe('resource agent', () => {
11-
// skipped: tests are disabled for the time being
11+
// Prism tests are disabled
1212
test.skip('executeQuery: only required params', async () => {
1313
const responsePromise = client.agent.executeQuery({ query: 'query' });
1414
const rawResponse = await responsePromise.asResponse();
@@ -20,7 +20,7 @@ describe('resource agent', () => {
2020
expect(dataAndResponse.response).toBe(rawResponse);
2121
});
2222

23-
// skipped: tests are disabled for the time being
23+
// Prism tests are disabled
2424
test.skip('executeQuery: required and optional params', async () => {
2525
const response = await client.agent.executeQuery({
2626
query: 'query',

tests/api-resources/api-keys.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const client = new Morphik({
88
});
99

1010
describe('resource apiKeys', () => {
11-
// skipped: tests are disabled for the time being
11+
// Prism tests are disabled
1212
test.skip('create: only required params', async () => {
1313
const responsePromise = client.apiKeys.create({ api_key: 'api_key', provider: 'provider' });
1414
const rawResponse = await responsePromise.asResponse();
@@ -20,7 +20,7 @@ describe('resource apiKeys', () => {
2020
expect(dataAndResponse.response).toBe(rawResponse);
2121
});
2222

23-
// skipped: tests are disabled for the time being
23+
// Prism tests are disabled
2424
test.skip('create: required and optional params', async () => {
2525
const response = await client.apiKeys.create({
2626
api_key: 'api_key',
@@ -29,7 +29,7 @@ describe('resource apiKeys', () => {
2929
});
3030
});
3131

32-
// skipped: tests are disabled for the time being
32+
// Prism tests are disabled
3333
test.skip('list', async () => {
3434
const responsePromise = client.apiKeys.list();
3535
const rawResponse = await responsePromise.asResponse();

tests/api-resources/batch.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const client = new Morphik({
88
});
99

1010
describe('resource batch', () => {
11-
// skipped: tests are disabled for the time being
11+
// Prism tests are disabled
1212
test.skip('retrieveChunks: only required params', async () => {
1313
const responsePromise = client.batch.retrieveChunks({ body: { foo: 'bar' } });
1414
const rawResponse = await responsePromise.asResponse();
@@ -20,12 +20,12 @@ describe('resource batch', () => {
2020
expect(dataAndResponse.response).toBe(rawResponse);
2121
});
2222

23-
// skipped: tests are disabled for the time being
23+
// Prism tests are disabled
2424
test.skip('retrieveChunks: required and optional params', async () => {
2525
const response = await client.batch.retrieveChunks({ body: { foo: 'bar' } });
2626
});
2727

28-
// skipped: tests are disabled for the time being
28+
// Prism tests are disabled
2929
test.skip('retrieveDocuments: only required params', async () => {
3030
const responsePromise = client.batch.retrieveDocuments({ body: { foo: 'bar' } });
3131
const rawResponse = await responsePromise.asResponse();
@@ -37,7 +37,7 @@ describe('resource batch', () => {
3737
expect(dataAndResponse.response).toBe(rawResponse);
3838
});
3939

40-
// skipped: tests are disabled for the time being
40+
// Prism tests are disabled
4141
test.skip('retrieveDocuments: required and optional params', async () => {
4242
const response = await client.batch.retrieveDocuments({ body: { foo: 'bar' } });
4343
});

tests/api-resources/cache.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const client = new Morphik({
88
});
99

1010
describe('resource cache', () => {
11-
// skipped: tests are disabled for the time being
11+
// Prism tests are disabled
1212
test.skip('create: only required params', async () => {
1313
const responsePromise = client.cache.create({ gguf_file: 'gguf_file', model: 'model', name: 'name' });
1414
const rawResponse = await responsePromise.asResponse();
@@ -20,7 +20,7 @@ describe('resource cache', () => {
2020
expect(dataAndResponse.response).toBe(rawResponse);
2121
});
2222

23-
// skipped: tests are disabled for the time being
23+
// Prism tests are disabled
2424
test.skip('create: required and optional params', async () => {
2525
const response = await client.cache.create({
2626
gguf_file: 'gguf_file',
@@ -31,7 +31,7 @@ describe('resource cache', () => {
3131
});
3232
});
3333

34-
// skipped: tests are disabled for the time being
34+
// Prism tests are disabled
3535
test.skip('retrieve', async () => {
3636
const responsePromise = client.cache.retrieve('name');
3737
const rawResponse = await responsePromise.asResponse();
@@ -43,7 +43,7 @@ describe('resource cache', () => {
4343
expect(dataAndResponse.response).toBe(rawResponse);
4444
});
4545

46-
// skipped: tests are disabled for the time being
46+
// Prism tests are disabled
4747
test.skip('update', async () => {
4848
const responsePromise = client.cache.update('name');
4949
const rawResponse = await responsePromise.asResponse();
@@ -55,7 +55,7 @@ describe('resource cache', () => {
5555
expect(dataAndResponse.response).toBe(rawResponse);
5656
});
5757

58-
// skipped: tests are disabled for the time being
58+
// Prism tests are disabled
5959
test.skip('addDocs: only required params', async () => {
6060
const responsePromise = client.cache.addDocs('name', { body: ['string'] });
6161
const rawResponse = await responsePromise.asResponse();
@@ -67,12 +67,12 @@ describe('resource cache', () => {
6767
expect(dataAndResponse.response).toBe(rawResponse);
6868
});
6969

70-
// skipped: tests are disabled for the time being
70+
// Prism tests are disabled
7171
test.skip('addDocs: required and optional params', async () => {
7272
const response = await client.cache.addDocs('name', { body: ['string'] });
7373
});
7474

75-
// skipped: tests are disabled for the time being
75+
// Prism tests are disabled
7676
test.skip('query: only required params', async () => {
7777
const responsePromise = client.cache.query('name', { query: 'query' });
7878
const rawResponse = await responsePromise.asResponse();
@@ -84,7 +84,7 @@ describe('resource cache', () => {
8484
expect(dataAndResponse.response).toBe(rawResponse);
8585
});
8686

87-
// skipped: tests are disabled for the time being
87+
// Prism tests are disabled
8888
test.skip('query: required and optional params', async () => {
8989
const response = await client.cache.query('name', { query: 'query', max_tokens: 0, temperature: 0 });
9090
});

tests/api-resources/chat.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const client = new Morphik({
88
});
99

1010
describe('resource chat', () => {
11-
// skipped: tests are disabled for the time being
11+
// Prism tests are disabled
1212
test.skip('list', async () => {
1313
const responsePromise = client.chat.list();
1414
const rawResponse = await responsePromise.asResponse();
@@ -20,15 +20,15 @@ describe('resource chat', () => {
2020
expect(dataAndResponse.response).toBe(rawResponse);
2121
});
2222

23-
// skipped: tests are disabled for the time being
23+
// Prism tests are disabled
2424
test.skip('list: request options and params are passed correctly', async () => {
2525
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
2626
await expect(client.chat.list({ limit: 1 }, { path: '/_stainless_unknown_path' })).rejects.toThrow(
2727
Morphik.NotFoundError,
2828
);
2929
});
3030

31-
// skipped: tests are disabled for the time being
31+
// Prism tests are disabled
3232
test.skip('retrieveHistory', async () => {
3333
const responsePromise = client.chat.retrieveHistory('chat_id');
3434
const rawResponse = await responsePromise.asResponse();
@@ -40,7 +40,7 @@ describe('resource chat', () => {
4040
expect(dataAndResponse.response).toBe(rawResponse);
4141
});
4242

43-
// skipped: tests are disabled for the time being
43+
// Prism tests are disabled
4444
test.skip('updateTitle: only required params', async () => {
4545
const responsePromise = client.chat.updateTitle('chat_id', { title: 'title' });
4646
const rawResponse = await responsePromise.asResponse();
@@ -52,7 +52,7 @@ describe('resource chat', () => {
5252
expect(dataAndResponse.response).toBe(rawResponse);
5353
});
5454

55-
// skipped: tests are disabled for the time being
55+
// Prism tests are disabled
5656
test.skip('updateTitle: required and optional params', async () => {
5757
const response = await client.chat.updateTitle('chat_id', { title: 'title' });
5858
});

tests/api-resources/cloud.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const client = new Morphik({
88
});
99

1010
describe('resource cloud', () => {
11-
// skipped: tests are disabled for the time being
11+
// Prism tests are disabled
1212
test.skip('deleteApp: only required params', async () => {
1313
const responsePromise = client.cloud.deleteApp({ app_name: 'app_name' });
1414
const rawResponse = await responsePromise.asResponse();
@@ -20,12 +20,12 @@ describe('resource cloud', () => {
2020
expect(dataAndResponse.response).toBe(rawResponse);
2121
});
2222

23-
// skipped: tests are disabled for the time being
23+
// Prism tests are disabled
2424
test.skip('deleteApp: required and optional params', async () => {
2525
const response = await client.cloud.deleteApp({ app_name: 'app_name' });
2626
});
2727

28-
// skipped: tests are disabled for the time being
28+
// Prism tests are disabled
2929
test.skip('generateUri: only required params', async () => {
3030
const responsePromise = client.cloud.generateUri({ app_id: 'app_id', name: 'name', user_id: 'user_id' });
3131
const rawResponse = await responsePromise.asResponse();
@@ -37,7 +37,7 @@ describe('resource cloud', () => {
3737
expect(dataAndResponse.response).toBe(rawResponse);
3838
});
3939

40-
// skipped: tests are disabled for the time being
40+
// Prism tests are disabled
4141
test.skip('generateUri: required and optional params', async () => {
4242
const response = await client.cloud.generateUri({
4343
app_id: 'app_id',

tests/api-resources/documents/chat.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const client = new Morphik({
88
});
99

1010
describe('resource chat', () => {
11-
// skipped: tests are disabled for the time being
11+
// Prism tests are disabled
1212
test.skip('complete: only required params', async () => {
1313
const responsePromise = client.documents.chat.complete('chat_id', { message: 'message' });
1414
const rawResponse = await responsePromise.asResponse();
@@ -20,7 +20,7 @@ describe('resource chat', () => {
2020
expect(dataAndResponse.response).toBe(rawResponse);
2121
});
2222

23-
// skipped: tests are disabled for the time being
23+
// Prism tests are disabled
2424
test.skip('complete: required and optional params', async () => {
2525
const response = await client.documents.chat.complete('chat_id', {
2626
message: 'message',
@@ -29,7 +29,7 @@ describe('resource chat', () => {
2929
});
3030
});
3131

32-
// skipped: tests are disabled for the time being
32+
// Prism tests are disabled
3333
test.skip('retrieveHistory', async () => {
3434
const responsePromise = client.documents.chat.retrieveHistory('chat_id');
3535
const rawResponse = await responsePromise.asResponse();

tests/api-resources/documents/documents.test.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const client = new Morphik({
88
});
99

1010
describe('resource documents', () => {
11-
// skipped: tests are disabled for the time being
11+
// Prism tests are disabled
1212
test.skip('retrieve', async () => {
1313
const responsePromise = client.documents.retrieve('document_id');
1414
const rawResponse = await responsePromise.asResponse();
@@ -20,7 +20,7 @@ describe('resource documents', () => {
2020
expect(dataAndResponse.response).toBe(rawResponse);
2121
});
2222

23-
// skipped: tests are disabled for the time being
23+
// Prism tests are disabled
2424
test.skip('list', async () => {
2525
const responsePromise = client.documents.list({});
2626
const rawResponse = await responsePromise.asResponse();
@@ -32,7 +32,7 @@ describe('resource documents', () => {
3232
expect(dataAndResponse.response).toBe(rawResponse);
3333
});
3434

35-
// skipped: tests are disabled for the time being
35+
// Prism tests are disabled
3636
test.skip('delete', async () => {
3737
const responsePromise = client.documents.delete('document_id');
3838
const rawResponse = await responsePromise.asResponse();
@@ -44,7 +44,7 @@ describe('resource documents', () => {
4444
expect(dataAndResponse.response).toBe(rawResponse);
4545
});
4646

47-
// skipped: tests are disabled for the time being
47+
// Prism tests are disabled
4848
test.skip('downloadFile', async () => {
4949
const responsePromise = client.documents.downloadFile('document_id');
5050
const rawResponse = await responsePromise.asResponse();
@@ -56,7 +56,7 @@ describe('resource documents', () => {
5656
expect(dataAndResponse.response).toBe(rawResponse);
5757
});
5858

59-
// skipped: tests are disabled for the time being
59+
// Prism tests are disabled
6060
test.skip('getByFilename', async () => {
6161
const responsePromise = client.documents.getByFilename('filename');
6262
const rawResponse = await responsePromise.asResponse();
@@ -68,7 +68,7 @@ describe('resource documents', () => {
6868
expect(dataAndResponse.response).toBe(rawResponse);
6969
});
7070

71-
// skipped: tests are disabled for the time being
71+
// Prism tests are disabled
7272
test.skip('getByFilename: request options and params are passed correctly', async () => {
7373
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
7474
await expect(
@@ -80,7 +80,7 @@ describe('resource documents', () => {
8080
).rejects.toThrow(Morphik.NotFoundError);
8181
});
8282

83-
// skipped: tests are disabled for the time being
83+
// Prism tests are disabled
8484
test.skip('getDownloadURL', async () => {
8585
const responsePromise = client.documents.getDownloadURL('document_id');
8686
const rawResponse = await responsePromise.asResponse();
@@ -92,15 +92,15 @@ describe('resource documents', () => {
9292
expect(dataAndResponse.response).toBe(rawResponse);
9393
});
9494

95-
// skipped: tests are disabled for the time being
95+
// Prism tests are disabled
9696
test.skip('getDownloadURL: request options and params are passed correctly', async () => {
9797
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
9898
await expect(
9999
client.documents.getDownloadURL('document_id', { expires_in: 0 }, { path: '/_stainless_unknown_path' }),
100100
).rejects.toThrow(Morphik.NotFoundError);
101101
});
102102

103-
// skipped: tests are disabled for the time being
103+
// Prism tests are disabled
104104
test.skip('getStatus', async () => {
105105
const responsePromise = client.documents.getStatus('document_id');
106106
const rawResponse = await responsePromise.asResponse();
@@ -112,7 +112,7 @@ describe('resource documents', () => {
112112
expect(dataAndResponse.response).toBe(rawResponse);
113113
});
114114

115-
// skipped: tests are disabled for the time being
115+
// Prism tests are disabled
116116
test.skip('updateFile: only required params', async () => {
117117
const responsePromise = client.documents.updateFile('document_id', {
118118
file: await toFile(Buffer.from('# my file contents'), 'README.md'),
@@ -126,7 +126,7 @@ describe('resource documents', () => {
126126
expect(dataAndResponse.response).toBe(rawResponse);
127127
});
128128

129-
// skipped: tests are disabled for the time being
129+
// Prism tests are disabled
130130
test.skip('updateFile: required and optional params', async () => {
131131
const response = await client.documents.updateFile('document_id', {
132132
file: await toFile(Buffer.from('# my file contents'), 'README.md'),
@@ -137,7 +137,7 @@ describe('resource documents', () => {
137137
});
138138
});
139139

140-
// skipped: tests are disabled for the time being
140+
// Prism tests are disabled
141141
test.skip('updateMetadata: only required params', async () => {
142142
const responsePromise = client.documents.updateMetadata('document_id', { body: { foo: 'bar' } });
143143
const rawResponse = await responsePromise.asResponse();
@@ -149,12 +149,12 @@ describe('resource documents', () => {
149149
expect(dataAndResponse.response).toBe(rawResponse);
150150
});
151151

152-
// skipped: tests are disabled for the time being
152+
// Prism tests are disabled
153153
test.skip('updateMetadata: required and optional params', async () => {
154154
const response = await client.documents.updateMetadata('document_id', { body: { foo: 'bar' } });
155155
});
156156

157-
// skipped: tests are disabled for the time being
157+
// Prism tests are disabled
158158
test.skip('updateText: only required params', async () => {
159159
const responsePromise = client.documents.updateText('document_id', { content: 'content' });
160160
const rawResponse = await responsePromise.asResponse();
@@ -166,7 +166,7 @@ describe('resource documents', () => {
166166
expect(dataAndResponse.response).toBe(rawResponse);
167167
});
168168

169-
// skipped: tests are disabled for the time being
169+
// Prism tests are disabled
170170
test.skip('updateText: required and optional params', async () => {
171171
const response = await client.documents.updateText('document_id', {
172172
content: 'content',

0 commit comments

Comments
 (0)