syllable-sdk 0.1.0-alpha.38 → 0.1.0-alpha.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -450,36 +450,6 @@ In some rare cases, the SDK can fail to get a response from the server or even m
450
450
  <!-- Start Server Selection [server] -->
451
451
  ## Server Selection
452
452
 
453
- ### Select Server by Index
454
-
455
- You can override the default server globally by passing a server index to the `serverIdx: number` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
456
-
457
- | # | Server |
458
- | --- | ------------------------------- |
459
- | 0 | `https://api.syllable.ai` |
460
- | 1 | `https://trial.api.syllable.ai` |
461
-
462
- #### Example
463
-
464
- ```typescript
465
- import { SyllableSDK } from "syllable-sdk";
466
-
467
- const syllableSDK = new SyllableSDK({
468
- serverIdx: 1,
469
- apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
470
- });
471
-
472
- async function run() {
473
- const result = await syllableSDK.agents.list({});
474
-
475
- // Handle the result
476
- console.log(result);
477
- }
478
-
479
- run();
480
-
481
- ```
482
-
483
453
  ### Override Server URL Per-Client
484
454
 
485
455
  The default server can also be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example:
@@ -487,7 +457,7 @@ The default server can also be overridden globally by passing a URL to the `serv
487
457
  import { SyllableSDK } from "syllable-sdk";
488
458
 
489
459
  const syllableSDK = new SyllableSDK({
490
- serverURL: "https://api.syllable.ai",
460
+ serverURL: "https://api.syllable.cloud",
491
461
  apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
492
462
  });
493
463
 
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "syllable-sdk",
5
- "version": "0.1.0-alpha.38",
5
+ "version": "0.1.0-alpha.39",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/lib/config.d.ts CHANGED
@@ -4,7 +4,7 @@ import { RetryConfig } from "./retries.js";
4
4
  /**
5
5
  * Contains the list of servers available to the SDK
6
6
  */
7
- export declare const ServerList: readonly ["https://api.syllable.ai", "https://trial.api.syllable.ai"];
7
+ export declare const ServerList: readonly ["https://api.syllable.cloud"];
8
8
  export type SDKOptions = {
9
9
  apiKeyHeader?: string | (() => Promise<string>);
10
10
  httpClient?: HTTPClient;
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
27
27
  export declare const SDK_METADATA: {
28
28
  readonly language: "typescript";
29
29
  readonly openapiDocVersion: "0.0.2";
30
- readonly sdkVersion: "0.1.0-alpha.38";
31
- readonly genVersion: "2.503.2";
32
- readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.38 2.503.2 0.0.2 syllable-sdk";
30
+ readonly sdkVersion: "0.1.0-alpha.39";
31
+ readonly genVersion: "2.506.0";
32
+ readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.39 2.506.0 0.0.2 syllable-sdk";
33
33
  };
34
34
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,UAAU,uEASb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG;IACvB,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAEhD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,GAAG,GAAG,IAAI,CAepE;AAED,eAAO,MAAM,YAAY;;;;;;CAOf,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,UAAU,yCAKb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG;IACvB,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAEhD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,GAAG,GAAG,IAAI,CAepE;AAED,eAAO,MAAM,YAAY;;;;;;CAOf,CAAC"}
package/lib/config.js CHANGED
@@ -13,11 +13,7 @@ exports.ServerList = [
13
13
  /**
14
14
  * API server
15
15
  */
16
- "https://api.syllable.ai",
17
- /**
18
- * Trial API server
19
- */
20
- "https://trial.api.syllable.ai",
16
+ "https://api.syllable.cloud",
21
17
  ];
22
18
  function serverURLFromOptions(options) {
23
19
  let serverURL = options.serverURL;
@@ -35,8 +31,8 @@ function serverURLFromOptions(options) {
35
31
  exports.SDK_METADATA = {
36
32
  language: "typescript",
37
33
  openapiDocVersion: "0.0.2",
38
- sdkVersion: "0.1.0-alpha.38",
39
- genVersion: "2.503.2",
40
- userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.38 2.503.2 0.0.2 syllable-sdk",
34
+ sdkVersion: "0.1.0-alpha.39",
35
+ genVersion: "2.506.0",
36
+ userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.39 2.506.0 0.0.2 syllable-sdk",
41
37
  };
42
38
  //# sourceMappingURL=config.js.map
package/lib/config.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAyCH,oDAeC;AAnDD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB;;OAEG;IACH,yBAAyB;IACzB;;OAEG;IACH,+BAA+B;CACvB,CAAC;AAsBX,SAAgB,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,gBAAgB;IAC5B,UAAU,EAAE,SAAS;IACrB,SAAS,EACP,oEAAoE;CAC9D,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAqCH,oDAeC;AA/CD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB;;OAEG;IACH,4BAA4B;CACpB,CAAC;AAsBX,SAAgB,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,gBAAgB;IAC5B,UAAU,EAAE,SAAS;IACrB,SAAS,EACP,oEAAoE;CAC9D,CAAC"}
@@ -201,6 +201,7 @@
201
201
  "sdk-docs/models/components/listresponseprompt",
202
202
  "sdk-docs/models/components/listresponsepromptresponse",
203
203
  "sdk-docs/models/components/listresponseservice",
204
+ "sdk-docs/models/components/listresponseserviceresponse",
204
205
  "sdk-docs/models/components/listresponsesession",
205
206
  "sdk-docs/models/components/listresponsesessionlabel",
206
207
  "sdk-docs/models/components/listresponsetool",
@@ -230,8 +231,11 @@
230
231
  "sdk-docs/models/components/security",
231
232
  "sdk-docs/models/components/service",
232
233
  "sdk-docs/models/components/servicecreate",
234
+ "sdk-docs/models/components/servicecreaterequest",
233
235
  "sdk-docs/models/components/serviceproperties",
236
+ "sdk-docs/models/components/serviceresponse",
234
237
  "sdk-docs/models/components/serviceupdate",
238
+ "sdk-docs/models/components/serviceupdaterequest",
235
239
  "sdk-docs/models/components/session",
236
240
  "sdk-docs/models/components/sessionaction",
237
241
  "sdk-docs/models/components/sessionlabel",
@@ -287,6 +291,7 @@
287
291
  "sdk-docs/models/operations/custommessagesdeleterequest",
288
292
  "sdk-docs/models/operations/custommessageslistrequest",
289
293
  "sdk-docs/models/operations/datasourcesdeletebynamerequest",
294
+ "sdk-docs/models/operations/datasourcesdeleterequest",
290
295
  "sdk-docs/models/operations/datasourcesgetbynamerequest",
291
296
  "sdk-docs/models/operations/datasourceslistrequest",
292
297
  "sdk-docs/models/operations/directorymemberdeleterequest",
@@ -299,13 +304,16 @@
299
304
  "sdk-docs/models/operations/promptsgetbyidrequest",
300
305
  "sdk-docs/models/operations/promptshistoryrequest",
301
306
  "sdk-docs/models/operations/promptslistrequest",
307
+ "sdk-docs/models/operations/servicedeleterequest",
302
308
  "sdk-docs/models/operations/servicelistrequest",
309
+ "sdk-docs/models/operations/servicesgetbyidrequest",
303
310
  "sdk-docs/models/operations/sessiongetbyidrequest",
304
311
  "sdk-docs/models/operations/sessionlabelgetbyidrequest",
305
312
  "sdk-docs/models/operations/sessionlabelslistrequest",
306
313
  "sdk-docs/models/operations/sessionrecordingstreamrequest",
307
314
  "sdk-docs/models/operations/sessionslistrequest",
308
315
  "sdk-docs/models/operations/sessiontranscriptgetbyidrequest",
316
+ "sdk-docs/models/operations/tooldeleterequest",
309
317
  "sdk-docs/models/operations/toolgetbynamerequest",
310
318
  "sdk-docs/models/operations/toollistrequest"
311
319
  ]
package/openapi.json CHANGED
@@ -7,12 +7,8 @@
7
7
  },
8
8
  "servers": [
9
9
  {
10
- "url": "https://api.syllable.ai",
10
+ "url": "https://api.syllable.cloud",
11
11
  "description": "API server"
12
- },
13
- {
14
- "url": "https://trial.api.syllable.ai",
15
- "description": "Trial API server"
16
12
  }
17
13
  ],
18
14
  "paths": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "syllable-sdk",
3
- "version": "0.1.0-alpha.38",
3
+ "version": "0.1.0-alpha.39",
4
4
  "author": "Speakeasy",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
package/src/lib/config.ts CHANGED
@@ -14,11 +14,7 @@ export const ServerList = [
14
14
  /**
15
15
  * API server
16
16
  */
17
- "https://api.syllable.ai",
18
- /**
19
- * Trial API server
20
- */
21
- "https://trial.api.syllable.ai",
17
+ "https://api.syllable.cloud",
22
18
  ] as const;
23
19
 
24
20
  export type SDKOptions = {
@@ -61,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
61
57
  export const SDK_METADATA = {
62
58
  language: "typescript",
63
59
  openapiDocVersion: "0.0.2",
64
- sdkVersion: "0.1.0-alpha.38",
65
- genVersion: "2.503.2",
60
+ sdkVersion: "0.1.0-alpha.39",
61
+ genVersion: "2.506.0",
66
62
  userAgent:
67
- "speakeasy-sdk/typescript 0.1.0-alpha.38 2.503.2 0.0.2 syllable-sdk",
63
+ "speakeasy-sdk/typescript 0.1.0-alpha.39 2.506.0 0.0.2 syllable-sdk",
68
64
  } as const;